package com.lexc.watermq.broker.core;

import java.util.HashMap;
import java.util.Map;

/**
 * createTime：2025-08-18 10:19
 * description：
 */
public class MMapFileModelManager {

    /**
     * key:topic name
     * val:文件的mmap对象
     */
    private final Map<String, MMapFileModel> modelMap = new HashMap<>();

    public void put(String topicName, MMapFileModel val) {
        modelMap.put(topicName, val);
    }

    public MMapFileModel get(String key) {
        return modelMap.get(key);
    }
}
